function lock(){  
       var sWidth,sHeight;  
       sWidth=window.top.document.body.offsetWidth; 
       sHeight=screen.height; 
       var bgObj=window.top.document.createElement("div"); 
       bgObj.setAttribute('id','bgDiv');  
       bgObj.innerHTML="<div style=\"position:absolute; top:35%; left:45%; background:#FFFFFF; text-align:center; width:auto; height:auto; border:solid\"><img src=\"./img/load.gif\"/>Loading...</div>";
       bgObj.style.position="absolute";  
       bgObj.style.top="0";  
       bgObj.style.background="#777";  
       bgObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75";  
       bgObj.style.opacity="0.6";  
       bgObj.style.left="0";  
       bgObj.style.width=sWidth + "px";  
       bgObj.style.height=sHeight + "px";  
       bgObj.style.zIndex = "10000";         
       window.top.document.body.appendChild(bgObj);  
}  
 
function unlock(){ 
      window.top.document.body.removeChild(window.top.document.getElementById("bgDiv"));
}




